#!/bin/bash

###############################
#测试脚本
###############################

set -x

function check()
{
	software_dir='/usr/local/mongo'
	if [[ -d $software_dir ]];then # PLEASE CHANGE THIS CONDITION
		echo "RETURN SUCCESS"
		return
	else
		echo "RETURN FAILED" # DO NOT CHANGE THE ECHO VALUE
	fi
}

# DO NOT CHANGE THE MAIN FUNCTION

function main()
{
	ret=$(check)
	if [[ $ret == *'RETURN SUCCESS' ]]; then
		echo "test scripts success"
	else
		echo "test scripts failed"
	fi
}

main
